package cn.caskm.souvenirshopsystem.service;

import cn.caskm.souvenirshopsystem.domain.Result;
import cn.caskm.souvenirshopsystem.domain.dto.PageDTO;
import cn.caskm.souvenirshopsystem.domain.po.GoodsCollect;
import cn.caskm.souvenirshopsystem.domain.query.MyCollectQuery;
import cn.caskm.souvenirshopsystem.domain.query.PageQuery;
import cn.caskm.souvenirshopsystem.domain.vo.MyCollectVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface GoodsCollectService extends IService<GoodsCollect> {

    Result<PageDTO<GoodsCollect>> page(PageQuery query);
    
    Result<List<GoodsCollect>> getAll();

    Result<GoodsCollect> detail(Integer id);

    void saveOrUpdateEntity(GoodsCollect goodsCollect);

    void collectGoods(Integer goodsId);

    Result<PageDTO<MyCollectVO>> goodsCollectService(MyCollectQuery query);

}
